﻿using Nancy.Metadata.Modules;

namespace API_Service.Metadata
{
    public class HomeMetadataModule : MetadataModule<MyRouteMetadata>
    {
        public HomeMetadataModule()
        {

            Describe["GetHome"] = desc =>
            {
                return new MyRouteMetadata
                {
                    Group = "Home",
                    Description = "Get Home",
                    Path = desc.Path,
                    Method = desc.Method,
                    Name = desc.Name,
                    Segments = desc.Segments
                };
            };


        }
    }
    
}